import {request} from '@/utils/request.js'

/**
 * 区域 API JS
 */

export default {
    /**
     * 区域树状结果
     * @param params
     * @returns {*}
     */
    tree(params = {}) {
        return request({
            url: 'temblor/region/tree',
            method: 'get',
            params
        })
    },
    /**
     * 写入人员
     * @param params
     * @returns {*}
     */
    save(params = {}) {
        return request({
            url: 'temblor/region/save',
            method: 'post',
            data: params
        })
    },
    regionSave(params = {}) {
        return request({
            url: 'temblor/region/regionSave',
            method: 'post',
            data: params
        })
    },
    /**
     * 人员列表
     * @param params
     * @returns {*}
     */
    list(params = {}) {
        return request({
            url: 'temblor/region/list',
            method: 'get',
            params
        })
    },
    del(params = {}) {
        return request({
            url: 'temblor/region/del',
            method: 'delete',
            params
        })
    }, regionDel(params = {}) {
        return request({
            url: 'temblor/region/regionDel',
            method: 'delete',
            params
        })
    },
}